JAVA = java

JAVAC = javac

COMP_FLAGS = -g

RUN_FLAGS = 

JAVADOC_FLAGS = -author -version

DIRS = db FlowGraph gui JavaGrammar MethodGraph MoC preprocess SymbolTable util \
        simplification sdf sr

JSRCS = 


.SUFFIXES: .class .java
.java.class:
	$(JAVAC) $(COMP_FLAGS) $<
	
all: $(JSRCS:%.java=%.class)
	@for x in $(DIRS); do \
	    if [ -w $$x ] ; then \
		( cd $$x ; \
		echo making $@ in $(ME)/$$x ; \
		$(MAKE) $@ ;\
		) \
	    fi ; \
	done
		
run: $(JSRCS)
	
together:
	@for x in $(JSRCS); do \
		updateTogether $$x monitor ; \
	done
	@for x in $(DIRS); do \
	    if [ -w $$x ] ; then \
		( cd $$x ; \
		echo making $@ in $(ME)/$$x ; \
		$(MAKE) $@ ;\
		) \
	    fi ; \
	done	    

clean: 
	@for x in $(DIRS); do \
	    if [ -w $$x ] ; then \
		( cd $$x ; \
		echo making $@ in $(ME)/$$x ; \
		$(MAKE) $@ ;\
		) \
	    fi ; \
	done

	rm -f *.class
	rm *.jar

javadoc:


